import request from "./request"

//首页数据请求
export const indexApi = () => request.get("/index/index")


//历史记录请求
export const GetHistoryListApi = () => request.get("/search/index")
//搜索商品数据请求
export const GetSearchProductListApi = (params) => request.get("/search/helper", { params })

//搜索商品列表渲染
export const GetProductData = (params) => request.get("/goods/list", { params })
//清除历史记录
export const clearHihistoryApi = () => request.post("/search/clearhistory")
//登录api
export const LoginApi = (params) => request.post("/auth/loginByWeb", params)
//详情页api
export const ProductDetailsApi = (params) => request.get("/goods/detail", { params })

//相关商品
export const toProductApi = (params) => request.get("/goods/related", { params })

